package com.sskj.level.bean;

import com.sskj.common.base.App;
import com.sskj.level.R;

public enum BuySellEnum {

    BUY("1", App.INSTANCE.getString(R.string.levelJavaBuySellEnum2), R.color.level_03c),

    SELL("2",App.INSTANCE.getString(R.string.levelJavaBuySellEnum4),R.color.level_ff5);

    private String type;
    private String title;
    private int colorRes;

    BuySellEnum(String type, String title, int colorRes) {
        this.type = type;
        this.title = title;
        this.colorRes = colorRes;
    }

    BuySellEnum(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        if (type.equals("1")){
            return  App.INSTANCE.getString(R.string.levelJavaBuySellEnum2);
        }else {
            return  App.INSTANCE.getString(R.string.levelJavaBuySellEnum4);
        }
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getColorRes() {
        return colorRes;
    }

    public void setColorRes(int colorRes) {
        this.colorRes = colorRes;
    }
}
